package com.tbit.main.service.impl;

import com.tbit.main.dao.core.BatteryModelDetailDao;
import com.tbit.main.pojo.BatteryModelDetail;
import com.tbit.main.service.BatteryModelDetalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2022-01-04 16:04
 */
@Service("batteryModelDetalService")
public class BatteryModelDetalServiceImpl implements BatteryModelDetalService {

    @Autowired
    private BatteryModelDetailDao batteryModelDetailDao;

    @Override
    public List<BatteryModelDetail> getByModelId(Integer modelId) {
        return batteryModelDetailDao.getByModelId(modelId);
    }

    /**
     * @description: 根据车辆Id获取车辆绑定的电池方案详细
     * @author: mo.shanyong
     * @date: 2025/4/21 14:42
     * @param: machineId 车辆Id
     * @return: java.util.List<com.tbit.uqbike.object.pojo.BatteryModelDetail>
     */
    @Override
    public List<BatteryModelDetail> getByMachineId(Integer machineId) {
        return batteryModelDetailDao.getListByMachineId(machineId);
    }
}
